const http = uni.$u.http

// 登录
export const loginApi = (data) => http.post('/auth/login', data, { custom: { isToken: false } })
//绑定手机号
export const bindPhoneApi = (code) => http.post('/auth/bindPhone', {}, { params: { code } })
//充值
export const topUpApi = (data) => http.post('/pay/topUp', data)
//查询订单号
export const getTopUpApi = (orderId) => http.get('/topUp/getByOrderId', { params: { orderId } })

//将经纬度转换为地址(腾讯地图)
export const getAddressApi = (query) => http.get('/business/business/getAddress', { params: query })

// 绑定邀请人
export const bindSuperiorApi = (userId) => http.get('/business/vip/bindSuperior', { params: { userId }, custom: { showSuccess: false, showError: false } })

// 获取我的详细信息
export const getMyInfoApi = () => http.get('/business/vip/getMyInfo')

// 修改微信昵称图像
export const updateWxInfo = (params) => http.post('/business/vip/updateWxInfo', {}, { params: params, custom: { showSuccess: false, showError: false } });
